package com.clementheliou.cheliou.web.core.fest.assertions;

import javax.servlet.http.Cookie;

import org.fest.assertions.api.Assertions;

import com.clementheliou.cheliou.business.technical.security.authentication.model.fest.asserter.AuthenticationDetailsAsserter;
import com.clementheliou.cheliou.web.util.cookie.fest.asserter.CookieAsserter;

/**
 * Entry point for assertion methods of the project, including the FEST library ones.
 * 
 * @author Clément HELIOU (clement.heliou@gmail.com)
 * @see {@link Assertions}.
 * @since 1.0
 */
public class CHeliouWebAssertions extends Assertions {

	/**
	 * Static factory for the {@link Cookie} instances.
	 * 
	 * @author Clément HELIOU (clement.heliou@gmail.com)
	 * @param actual the {@link Cookie} instance to be asserted.
	 * @return the {@link CookieAsserter} to be used.
	 * @see {@link AuthenticationDetailsAsserter}.
	 * @since 1.0
	 */
	public static CookieAsserter assertThat(final Cookie actual) {
		return new CookieAsserter(actual);
	}
}
